package cn.powertime.evaluation.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ReqPostingsLabelVo implements Serializable {

    @ApiModelProperty(value="标签id",name="id")
    private Long id;
    @ApiModelProperty(value="标签名称",name="name")
    @Pattern(regexp="[\\u4e00-\\u9fa5a-zA-Z0-9]+$",message = "标签包含特殊字符")
    private String name;
}
